
part of api;

extension Auth on API {
  /// 手机号验证码登录
  Future<TokenEntity?> loginSms(String mobile,String code) async =>
      await api.post("/auth/oauth/sms",data: {"mobile":mobile,"code":code}, needThrow: true);

}